/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Tema_4_arrays;

import java.util.Arrays;



/**
 *
 * @author Alex
 */
public class Ejem_equals_comparar {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
     
     int a1[]={1,2,3,4,5,6,7,8,9};   
     int a2[]={1,2,3,4,5,6,7,8,9};
     
        if (Arrays.equals(a1,a2)==true)
        {
            System.out.println("Son Iguales");  
        }
     else 
        {
            System.out.println("Son Desiguales");
        }
    }
}
